package stu.khy.dao.impl;

import stu.khy.dao.CheckResultDao;
import stu.khy.entity.CheckResult;
import stu.khy.entity.ClaimVoucher;

public class CheckResultDaoImpl extends BaseHibernateDaoSupport<CheckResult>
		implements CheckResultDao {

	@Override
	public int deleteByClaimVoucher(ClaimVoucher claimVoucher) {
		String hql = "delete from CheckResult where claimId = ?";
		return this.getHibernateTemplate()
				.bulkUpdate(hql, claimVoucher.getId());
	}

}
